<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'loginFailure.jsp' starting page</title>
    <meta name="content-type" content="text/html; charset=UTF-8">    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <link rel="stylesheet" type="text/css" href="css/loginfail.css">
  </head>
  
  <body>
  
        <br>
        <h2 style="text-align: center">登陆失败</h2>
        <br>
  <center>
    <%
    int code = (Integer) request.getAttribute("error_code");
        switch (code) {
            case 0 :
                out.println("密码有误");
                break;
            case 2 :
                out.println("用户不存在");
                break;
            case 3 :
                out.println("验证码有误");
                break;
            case 4:
                out.println("请选择用户类型");
        }
     %>
      <br>
      <br>
      <br>

      <a href="login.jsp"><button class="red" type="button"><i class="icon ion-md-lock"></i>返回登录页面</button></a>
  </center>
  </body>
</html>
